package com.wangdao.mall.dao;

import com.wangdao.mall.model.*;

import java.util.List;

/**
 * @Author:HaiyangTian
 * @Description:
 * @Date: Created in 10:37 2020/5/2
 * @Modified By:
 */
public interface GoodsDao {

    List<Type> getType();

    List<Goods> getGoodsByType(String typeId);

    int addGoods(GoodsParam goodsParam);

    void addSpecList(int goodsId, List<Spec> specList);

    int addType(Type type);

    int deleteType(String typeId);

    void deleteGoods(String id);

    void deleteSpecList(String id);

    Goods getGoods(String id);

    List<Spec> getSpecs(String id);

    int addSpec(SpecId spec);

    int deleteSpec(SpecId spec);

    void updateGoods(GoodsParam goodsParam);

    List<Message> getNoReplyMsg();

    String getUserName(Integer userId);

    String getGoodsName(Integer goodsId);

    List<ReplyMessage> getRepliedMsg();

    void reply(ReplyMessage replyMessage);

    ClientGoods getGoodsInfo(String id);

    Reply getReply(Integer id);

    List<ClientMessage> getGoodsMsg(String id);

    String getCreateTime(Integer id);

    Integer getUserId(Integer id);

    int askGoodsMsg(AskMessage message);
}
